﻿<!DOCTYPE html>
<html xmlns:ng="http://angularjs.org" id="ng-app" ng-app="AngularApp">
<head>
	<meta charset="utf-8" />
	<title>发布作品</title>
	<script src="../js/frame.js"></script>
	<link href="../css/style.css" rel="stylesheet" />
	<link href="../css/publish.css" rel="stylesheet" />
	<script src="../js-ctrl/PublishCtrl.js"></script>
	<script type="text/javascript">
	window.onerror = function(){
		alert(a+"||" + b+"||"+c);
 
	}
	</script>
</head>
<body ng-controller="PublishCtrl.ctrl">
	<div class="topbar">
		<div class="backbutton" onclick="Util.hideChildPage()">返回</div>
		<span class="p_type" ng-click="showScreening=!showScreening">作品类别</span>
		
		<div class="submit" ngclick="commit()">完成</div>
	</div>
	<div class="child_body">
		
		<div class="public_list">
			<table class="public_item">
				<tr>
					<td rowspan="2" class="img_control">
						<div ng-show="!showImage[0]" class="upload_file" ng-click="photograph = true">图片</div>
						<img ng-show="showImage[0]" src="" class="upload_image" >
					</td>
					<td>
						<input class="speak" type="button" value="按住说话" />
					</td>
				</tr>
				<tr>
					<td>
						<textarea class="form-control" rows="3" placeholder="在此输入文字教程"></textarea>
					</td>
				</tr>
			</table>

			<table class="public_item">
				<tr>
					<td rowspan="2" class="img_control">
						<div ng-show="!showImage[1]" class="upload_file" ng-click="photograph = true">图片</div>
						<img ng-show="showImage[1]" src="" class="upload_image" >
					</td>
					<td>
						<input class="speak" type="button" value="按住说话" />
					</td>
				</tr>
				<tr>
					<td>
						<textarea class="form-control" rows="3" placeholder="在此输入文字教程"></textarea>
					</td>
				</tr>
			</table>

			<table class="public_item">
				<tr>
					<td rowspan="2" class="img_control">
						<div class="upload_file" ng-click="photograph = true">图片</div>
					</td>
					<td>
						<input class="speak" type="button" value="按住说话" />
					</td>
				</tr>
				<tr>
					<td>
						<textarea class="form-control" rows="3" placeholder="在此输入文字教程"></textarea>
					</td>
				</tr>
			</table>

			<table class="public_item">
				<tr>
					<td rowspan="2" class="img_control">
						<div class="upload_file" ng-click="photograph = true">图片</div>
					</td>
					<td>
						<input class="speak" type="button" value="按住说话" />
					</td>
				</tr>
				<tr>
					<td>
						<textarea class="form-control" rows="3" placeholder="在此输入文字教程"></textarea>
					</td>
				</tr>
			</table>
		</div>
	</div>


	<div ng-show="photograph" class="photograph ng-hide">
		<div style="height:30%;"></div>
		<div class="buttons">
			<input type="button" value="拍照" ng-click="openCapture()"/>
			<input type="button" class="blue" value="本地上传" ng-click="openPhotoGallery()"/>
			<input type="button" value="取消" ng-click="photograph = false"/>
		</div>

	</div>

	<div class="screening" ng-show="showScreening">
		<div>
			<div class="screening_item" ng-repeat="d in screeningData">
				<img class="screening_icon" ng-src="{{'../'+d.src}}"/>
				<div class="screening_text" ng-bind="d.title"></div>
			</div>
			<div class="screening_cancel inner_center">
				<input type="button" class="button white big" value="取消" ng-click="showScreening=false" />
			</div>
		</div>
	</div>
</body>
</html>
<script>angular.module('AngularApp', ['ngTouch', 'ngSanitize']);</script>
